package com.main;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;

public class StaticTextures {
	public static Sprite grass_tile;
	public static Sprite grass_blueberry_tile;
	public static Sprite grass_stone_tile;
	public static Sprite dirt_tile;
	public static Sprite characterUp;
	public static Sprite characterDown;
	public static Sprite characterFrontBlink;
	public static Sprite characterRight;
	public static Sprite characterLeft;
	public static Sprite[] characterMR;
	public static Sprite[] characterML;
	public static Sprite[] characterMU;
	public static Sprite[] characterMD;
	public static Sprite[] characterMS;
	public static Sprite[] characterAAE;
	public static Sprite[] characterAAW;
	public static Sprite[] characterAAN;
	public static Sprite[] blink;
	public static Sprite[] hitting;
	public static Sprite lumberman2axe;
	public static Sprite lumberman1axe;
	public static TextureAtlas textAtlasSide;
	public static TextureAtlas textAtlasUp;
	public static TextureAtlas textAtlasDown;
	public static TextureAtlas textAtlasAxe;
	public static TextureAtlas textAtlasAxeN;
	public static TextureAtlas textAtlasHit;
	public static Sprite grass_flowers_red_3_tile;
	public static Sprite grass_flowers_blue_2_tile;
	public static Sprite ditch_tile;
	public static Sprite waterDeep;
	public static Sprite tree_small_tile;
	public static Sprite tree_medium_tile;
	public static Sprite tree_big_tile;
	public static Sprite tree_big_with_apples_tile;
	public static Sprite mushroom_redpoison_tile;
	public static Sprite human_skeleton_tile;
	public StaticTextures() {
		grass_tile = new Sprite(new Texture(Gdx.files.internal("data/Grass.png")));
		grass_flowers_red_3_tile = new Sprite(new Texture(Gdx.files.internal("data/Grass_Flower_Red_3.png")));
		grass_flowers_blue_2_tile = new Sprite(new Texture(Gdx.files.internal("data/Grass_Flower_Blue_2.png")));
		grass_blueberry_tile = new Sprite(new Texture(Gdx.files.internal("data/Grass_BlueBerry.png")));
		grass_stone_tile = new Sprite(new Texture(Gdx.files.internal("data/Grass_Stone.png")));
		dirt_tile = new Sprite(new Texture(Gdx.files.internal("data/Dirt.png")));
		characterUp = new Sprite(new Texture(Gdx.files.internal("data/heroback.png")));
		characterDown = new Sprite(new Texture(Gdx.files.internal("data/herofront.png")));
		characterFrontBlink = new Sprite(new Texture(Gdx.files.internal("data/Hero/herofrontblink.png")));
		characterLeft = new Sprite(new Texture(Gdx.files.internal("data/heroright.png")));
		characterLeft.flip(true, false);
		lumberman1axe = new Sprite(new Texture(Gdx.files.internal("data/npc/loggerman/lumberman1axefront.png")));
		lumberman2axe = new Sprite(new Texture(Gdx.files.internal("data/npc/loggerman/lumberman2axefront.png")));
		ditch_tile = new Sprite(new Texture(Gdx.files.internal("data/ditch_tile.png")));
		characterRight = new Sprite(new Texture(Gdx.files.internal("data/heroright.png")));
		tree_small_tile = new Sprite(new Texture(Gdx.files.internal("data/Tree_small.png")));
		tree_medium_tile = new Sprite(new Texture(Gdx.files.internal("data/Tree_medium.png")));
		tree_big_tile = new Sprite(new Texture(Gdx.files.internal("data/Tree_Big.png")));
		tree_big_with_apples_tile = new Sprite(new Texture(Gdx.files.internal("data/Tree_Big_With_Apples.png")));
		mushroom_redpoison_tile = new Sprite(new Texture(Gdx.files.internal("data/mushroom_red_poison.png")));
		human_skeleton_tile = new Sprite(new Texture(Gdx.files.internal("data/human_skeleton_tile.png")));
		waterDeep = new Sprite(new Texture(Gdx.files.internal("data/waterdeep.png")));
		textAtlasSide = new TextureAtlas(Gdx.files.internal("data/Hero/moveright/pack"));
		textAtlasUp = new TextureAtlas(Gdx.files.internal("data/Hero/moveup/pack"));
		textAtlasAxe = new TextureAtlas(Gdx.files.internal("data/Hero/axing/pack"));
		textAtlasAxeN = new TextureAtlas(Gdx.files.internal("data/Hero/axingup/pack"));
		textAtlasDown = new TextureAtlas(Gdx.files.internal("data/Hero/movedown/pack"));
		textAtlasHit = new TextureAtlas(Gdx.files.internal("data/animations/Hit/pack"));
		characterAAE = new Sprite[7];
		characterAAE[0] = textAtlasAxe.createSprite("axing1");
		characterAAE[1] = textAtlasAxe.createSprite("axing2");
		characterAAE[2] = textAtlasAxe.createSprite("axing3");
		characterAAE[3] = textAtlasAxe.createSprite("axing4");
		characterAAE[4] = textAtlasAxe.createSprite("axing5");
		characterAAE[5] = textAtlasAxe.createSprite("axing5");
		characterAAE[6] = textAtlasAxe.createSprite("axing1");
		
		characterAAW = new Sprite[7];
		characterAAW[0] = textAtlasAxe.createSprite("axing1");
		characterAAW[1] = textAtlasAxe.createSprite("axing2");
		characterAAW[2] = textAtlasAxe.createSprite("axing3");
		characterAAW[3] = textAtlasAxe.createSprite("axing4");
		characterAAW[4] = textAtlasAxe.createSprite("axing5");
		characterAAW[5] = textAtlasAxe.createSprite("axing5");
		characterAAW[6] = textAtlasAxe.createSprite("axing1");
		
		hitting = new Sprite[7];
		hitting[0] = textAtlasHit.createSprite("hit1");
		hitting[1] = textAtlasHit.createSprite("hit2");
		hitting[2] = textAtlasHit.createSprite("hit3");
		hitting[3] = textAtlasHit.createSprite("hit4");
		hitting[4] = textAtlasHit.createSprite("hit5");
		hitting[5] = textAtlasHit.createSprite("hit6");
		hitting[6] = textAtlasHit.createSprite("hit1");
		  
		
		characterAAN = new Sprite[6];
		characterAAN[0] = textAtlasAxeN.createSprite("herobackaxe1");
		characterAAN[1] = textAtlasAxeN.createSprite("herobackaxe2");
		characterAAN[2] = textAtlasAxeN.createSprite("herobackaxe3");
		characterAAN[3] = textAtlasAxeN.createSprite("herobackaxe1");
		characterAAN[4] = textAtlasAxeN.createSprite("herobackaxe2");
		characterAAN[5] = textAtlasAxeN.createSprite("herobackaxe3");
		        
		for(int i = 0; i < 7; i++){
			characterAAW[i].flip(true, false);		
		}

		characterMS = new Sprite[9];
		for(int i = 0; i < 9; i++){
			characterMS[i] = new Sprite(new Texture(Gdx.files.internal("data/herofront.png")));
		}
		
		characterMU = new Sprite[9];
		characterMU[0] = textAtlasUp.createSprite("heroback1");
		characterMU[1] = textAtlasUp.createSprite("heroback2");
		characterMU[2] = textAtlasUp.createSprite("heroback1");
		characterMU[3] = textAtlasUp.createSprite("heroback3");
		characterMU[4] = textAtlasUp.createSprite("heroback1");
		characterMU[5] = textAtlasUp.createSprite("heroback1");
		characterMU[6] = textAtlasUp.createSprite("heroback2");
		characterMU[7] = textAtlasUp.createSprite("heroback1");
		characterMU[8] = textAtlasUp.createSprite("heroback3");
		
		characterMD = new Sprite[9];
		characterMD[0] = textAtlasDown.createSprite("heromove3");
		characterMD[1] = textAtlasDown.createSprite("heromove1");
		characterMD[2] = textAtlasDown.createSprite("heromove2");
		characterMD[3] = textAtlasDown.createSprite("heromove1");
		characterMD[4] = textAtlasDown.createSprite("heromove3");
		characterMD[5] = textAtlasDown.createSprite("heromove4");
		characterMD[6] = textAtlasDown.createSprite("heromove5");
		characterMD[7] = textAtlasDown.createSprite("heromove4");
		characterMD[8] = textAtlasDown.createSprite("heromove3");
		
		characterMR = new Sprite[9];
		characterMR[0] = textAtlasSide.createSprite("heroright2");
		characterMR[1] = textAtlasSide.createSprite("heroright3");
		characterMR[2] = textAtlasSide.createSprite("heroright4");
		characterMR[3] = textAtlasSide.createSprite("heroright3");
		characterMR[4] = textAtlasSide.createSprite("heroright2");
		characterMR[5] = textAtlasSide.createSprite("heroright5");
		characterMR[6] = textAtlasSide.createSprite("heroright6");
		characterMR[7] = textAtlasSide.createSprite("heroright5");
		characterMR[8] = textAtlasSide.createSprite("heroright2");
		
		characterML = new Sprite[9];
		characterML[0] = textAtlasSide.createSprite("heroright2");
		characterML[1] = textAtlasSide.createSprite("heroright3");
		characterML[2] = textAtlasSide.createSprite("heroright4");
		characterML[3] = textAtlasSide.createSprite("heroright3");
		characterML[4] = textAtlasSide.createSprite("heroright2");
		characterML[5] = textAtlasSide.createSprite("heroright5");
		characterML[6] = textAtlasSide.createSprite("heroright6");
		characterML[7] = textAtlasSide.createSprite("heroright5");
		characterML[8] = textAtlasSide.createSprite("heroright2");
		
		
		
		
		blink = new Sprite[5];
		blink[0] = characterFrontBlink;
		blink[1] = characterFrontBlink;
		blink[2] = characterFrontBlink;
		blink[3] = characterFrontBlink;
		blink[4] = characterFrontBlink;
		
		
		
		for(int i = 0; i < 9; i++){
			characterML[i].flip(true, false);		
		}
	}
}
